<?php
/**
 * Created by PhpStorm.
 * User: yangwang
 * Date: 2024-04-17
 * Time: 15:35
 */

namespace App\Kuafu\Shop\Controller\B;


use App\Kuafu\Base\Controller\BaseController;
use App\Kuafu\Base\Enum\BaseCodeEnum;
use App\Kuafu\Shop\Service\ShopStaffRecordLogService;
use Illuminate\Http\Request;

class ShopStaffRecordLogController extends BaseController
{

    public function getLogList(Request $request)
    {
        $userId = $request->get('userId', 0);
        $shopId = $request->get('shopId', 0);
        $pageSize         = (int)$request->get('pageSize', 10);
        $pageNum          = (int)$request->get('pageNum', 1);


        if (!$userId || !$shopId) {
            return $this->fail(BaseCodeEnum::ERR_400000);
        }

        return $this->success(ShopStaffRecordLogService::getLogList($userId, $shopId, $pageSize, $pageNum));
    }

}